package com.jeff.tianti.controller;

import com.jeff.tianti.cms.entity.CourseCounsel;
import com.jeff.tianti.cms.service.CourseCounselService;
import com.jeff.tianti.common.dto.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/courseCounsel")//课程咨询表
@CrossOrigin(maxAge = 3600)
public class CourseCounselController {
    @Autowired
    private CourseCounselService courseCounselService;
    /**
     *@Ceator:liuYI
     *@Describe:行业培训用户课程咨询
    */
    @RequestMapping(value = "/save",method = RequestMethod.POST)
    public AjaxResult courseCounseSave(@RequestBody CourseCounsel courseCounsel) {
        courseCounselService.save(courseCounsel);
        return AjaxResult.setSuccessData(null);
    }
}
